package com.zhny.service;

import com.zhny.dao.IWenShiDao;
import com.zhny.entity.Wenshi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Create By Alex On 2018/4/13 13:40
 */
@Service
public class WenshiServiceImpl implements IJsonService {

    private Map<Integer, String> plotidTable;

    @Autowired
    private IWenShiDao wenShiDao;

    @Override
    public Wenshi selectDataByDeviceFlag(Integer deviceFlag) {
        return wenShiDao.select(plotidTable.get(deviceFlag));
    }

    public Map<Integer, String> getPlotidTable() {
        return plotidTable;
    }

    public void setPlotidTable(Map<Integer, String> plotidTable) {
        this.plotidTable = plotidTable;
    }
}
